from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
_magic_number = 2
_modified_time = 1215209449.008472
_template_filename='/Users/chrismoos/Documents/Code/openlbs/openlbs-server/openlbsserver/templates/index_auth.mak'
_template_uri='/index_auth.mak'
_template_cache=cache.Cache(__name__, _modified_time)
_source_encoding='utf-8'
_exports = ['content']


def _mako_get_namespace(context, name):
    try:
        return context.namespaces[(__name__, name)]
    except KeyError:
        _mako_generate_namespaces(context)
        return context.namespaces[(__name__, name)]
def _mako_generate_namespaces(context):
    pass
def _mako_inherit(template, context):
    _mako_generate_namespaces(context)
    return runtime._inherit_from(context, 'base.mak', _template_uri)
def render_body(context,**pageargs):
    context.caller_stack.push_frame()
    try:
        __M_locals = dict(pageargs=pageargs)
        # SOURCE LINE 2
        context.write(u'\n\n')
        return ''
    finally:
        context.caller_stack.pop_frame()


def render_content(context):
    context.caller_stack.push_frame()
    try:
        c = context.get('c', UNDEFINED)
        _ = context.get('_', UNDEFINED)
        # SOURCE LINE 4
        context.write(u'\n\n<p>')
        # SOURCE LINE 6
        context.write(unicode(_('You are logged in.')))
        context.write(u' Click <a href="/logout">here to logout</a>.</p>\n\n<h2>')
        # SOURCE LINE 8
        context.write(unicode(_('My Devices')))
        context.write(u'</h2>\n<p>')
        # SOURCE LINE 9
        context.write(unicode(_('Below is a list of devices associated with your account. To add a device, you must download the OpenLBS client and then login on the device.')))
        context.write(u'</p>\n\n')
        # SOURCE LINE 11
        for dev in c.devices:
            # SOURCE LINE 12
            context.write(u'<a href="/track/device/')
            context.write(unicode(dev.id))
            context.write(u'/">')
            context.write(unicode(dev.device_uid))
            context.write(u' (')
            context.write(unicode(hex(int(dev.device_uid))))
            context.write(u')</a> <br/>\n')
        return ''
    finally:
        context.caller_stack.pop_frame()


